flatter (someone's) ego

Translations
flatter l'ego de quelqu'un
Definitions
To compliment or praise someone in a way that boosts their self-esteem or self-importance, often with the intention of gaining favor or influence.